// 1.
const Koa = require('koa');
const static = require('koa-static');
const router = require('koa-router');

let server = new Koa();

server.listen(8080);

let mainRouter=router();

server.use(mainRouter.routes());

mainRouter.get('/user',require('./routers/user'))